﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AG.Data
{
    /// <summary>
    /// 
    /// </summary>
    public class AGModelAction
    {
        public byte Id { get; set; }

        public List<AGModelDirection> Directions { get; private set; }

        public AGModelAction()
        {
            Directions = new List<AGModelDirection>();
        }

        public AGModelDirection GetDirection(int dirId)
        {
            for (int iDir = 0; iDir < Directions.Count; iDir++)
            {
                AGModelDirection direction = Directions[iDir];
                if (direction.Id == dirId)
                {
                    return direction;
                }
            }
            return null;
        }
    }
}
